#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: henry_oulen@163.com
@file: url_file.py
@time: 2023/10/26 14:47
@desc: 
"""
from backend.tvadmin.system.views.dept import DeptModelViewSet
from backend.tvadmin.system.views.factory import FactoryView
from backend.tvadmin.system.views.menu import MenuModelViewSet
from backend.tvadmin.system.views.permission import DeptHandler, SingleDeptHandler, RoleHandler, FactoryModelViewSet, \
    PostModelViewSet, FileModelViewSet, ConfigSettingsModelViewSet, GetCondfigModelViewSet
from backend.tvadmin.system.views.role import RoleModelViewSet
from backend.tvadmin.system.views.users import UserModelViewSet

permission_urls = [
    (r"/api/", FactoryView),
    # (r"/api/api/dept/", DeptHandler),
    # (r"/api/api/dept/getApiById", DeptHandler.getApiById),
    # (r"/api/api/dept/(\d+)/", SingleDeptHandler),
    # (r"/api/api/role/(\d+)/", SingleDeptHandler),
    # (r"/api/api/role/", RoleHandler),
    (r"/api/api/factory/", FactoryModelViewSet),
    (r"/api/api/post/", PostModelViewSet),
    (r"/api/api/file/", FileModelViewSet),
    (r"/api/api/menu/", MenuModelViewSet),
    (r"/api/api/role/", RoleModelViewSet),
    (r"/api/api/user/", UserModelViewSet),
    (r"/api/api/dept/", DeptModelViewSet),
    (r"/api/api/configurations/", ConfigSettingsModelViewSet),
    (r"/api/api/get_config_key", GetCondfigModelViewSet),
]
